package site.zhouinfo.designpattern.guanchazhemoshi.my;

/**
 * 读者 观察者
 *
 * @author zhou
 * @create 2017-04-06 17:36
 * @email zhouinfo@qq.com
 */
public class MyReader implements MyObserver {

    private String name;

    public MyReader() {

    }

    public MyReader(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void update(String content) {
        System.out.println(name + "看到-->" + content);
    }

}
